#!/bin/sh

echo I: Create home directory on login.

cat > /usr/share/pam-configs/mkhomedir <<EOF
Name: Create home directory during login
Default: yes
Priority: 900
Session-Type: Additional
Session:
        required        pam_mkhomedir.so umask=0022 skel=/etc/skel
EOF
sync
sed -i '/mkhomedir/d' /var/lib/pam/seen
pam-auth-update --package

